.class Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;
.super Ljava/lang/Object;
.source "MediaControlPanelEditMode.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/view/MediaControlPanelEditMode;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/view/MediaControlPanelEditMode;)V
    .locals 0
    .parameter

    .prologue
    .line 129
    iput-object p1, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .parameter "v"

    .prologue
    const v4, 0x7f0a0074

    .line 131
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iget-object v1, v1, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iget-object v1, v1, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->mRecorder:Lcom/htc/android/footprints/utils/voice/Recorder;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/voice/Recorder;->sampleFile()Ljava/io/File;

    move-result-object v1

    if-nez v1, :cond_1

    .line 132
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a0074

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->showToast(Ljava/lang/String;)V
    invoke-static {v1, v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->access$100(Lcom/htc/android/footprints/view/MediaControlPanelEditMode;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 183
    :goto_0
    return-void

    .line 135
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 136
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 137
    iget-object v1, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->showToast(Ljava/lang/String;)V
    invoke-static {v1, v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->access$100(Lcom/htc/android/footprints/view/MediaControlPanelEditMode;Ljava/lang/String;)V

    goto :goto_0

    .line 140
    .end local v0           #e:Ljava/lang/Exception;
    :cond_1
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a00a5

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x1080027

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a0073

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a0065

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2$2;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2$2;-><init>(Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a0004

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2$1;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2$1;-><init>(Lcom/htc/android/footprints/view/MediaControlPanelEditMode$2;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->show()Lcom/htc/widget/HtcAlertDialog;

    goto :goto_0
.end method
